export default {
  name: "workGPT",
  alias: "快鲸",
  from: "MICRO",
  requestDomain:
    window.ORGCOMMON_BASE_URL ||
    (process.env.NODE_ENV == "production" ? (() => {
      return window.__MICRO_APP_ENVIRONMENT__ ? window.rawWindow.location.origin : window.location.origin;
    })() : ""),

  pages: {
    home: "/socialMedia/home",
    login: "/socialMedia/auth/login",
    updater: "/updater",
  },
  get baseUrl(){
    let BASE_URL = this.requestDomain;

    if (process.env.NODE_ENV === "development") {
      // BASE_URL = "https://local.kuaijingai.com";
      BASE_URL = "https://montage.chocei.com";
    }

    return BASE_URL
  },

  get replyUrl() {
    return window.ORGCOMMON_REPLY_URL || this.baseUrl;
  },

  updater: {
    autoUpdate: true,
  }
};
